package com.itasura.bridge;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author sailor wang
 * @date 2018/9/11 下午2:19
 * @description
 */
public class Main {

    private static final Logger LOGGER = LoggerFactory.getLogger(Main.class);

    public static void main(String[] args) {
        LOGGER.info("⚔ + 噬魂魔法");
        Sword enchantedSword = new Sword(new SoulEatingEnchantment());
        enchantedSword.wield();
        enchantedSword.swing();
        enchantedSword.unwield();

        LOGGER.info("🔨 + 飞行魔法");
        Hammer hammer = new Hammer(new FlyingEnchantment());
        hammer.wield();
        hammer.swing();
        hammer.unwield();
    }
}